
/**
 * @Project : Clion_ProgrammingExercises
 * @File : 1
 * @Author : WangRuoyu 
 * @Date : 2023/5/18 20:14
 */

#include "iostream"
#include "math.h"

using namespace std;

int main() {
    int n;
    scanf("%d", &n);

    int a[n];
    double avg = 0;
    for (int i = 0; i < n; ++i) {
        scanf("%d", &a[i]);
        avg += a[i];
    }
    avg /= n;
    double da = 0;
    for (int i = 0; i < n; ++i) {
        da += (a[i] - avg) * (a[i] - avg);
    }

    da = sqrt(da / n);

    for (int i = 0; i < n; ++i) {
        printf("%.8f\n", (a[i] - avg) / da);
    }

    return 0;
}